<?php
header("Content-Type:text/html;charset=utf-8");
$db_host="localhost";
$db_user="root";
$db_pass="root";
$db_name="jiuye";
$conn=mysqli_connect($db_host,$db_user,$db_pass,$db_name);
if(mysqli_query($conn,"set names 'utf8'")===false){
    echo "无法连接".$db_host."数据库";
}
?>